$("#del").on('click', function () {
    $.ajax({
        url: '/delPic',
        method: "post",
        data: {studentId: getUrlParam("studentId")},
        dataType: 'json',
        success: function (data) {
            if (data.code == 0) {

                layer.msg(data.msg);
                // layui.$('#uploadDemoView').addClass('layui-hide').find('img');
                //点击确定按钮
                // $(".layui-laypage-btn").trigger("click");
                var index = parent.layer.getFrameIndex(window.name);
                setTimeout(function () {
                    parent.layer.close(index)
                    $(".layui-laypage-btn").trigger("click");


                }, 700);
                // $(".layui-laypage-btn").trigger("click");


            } else {
                layer.msg(data.msg);

            }
        }
    })
})